<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
	<title>题目预览</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<script type="text/javascript" src="__JS__/jshelper.js"></script> 
		<script type="text/JavaScript">
			function choicetdelete(id,testid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/saqdelete');
					postwith('__URL__/choicetdelete',{id:id,testid:testid});
				}
			}
			function nchoicetdelete(id,testid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/saqdelete');
					postwith('__URL__/nchoicetdelete',{id:id,testid:testid});
				}
			}
			function blanktdelete(id,testid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/saqdelete');
					postwith('__URL__/blanktdelete',{id:id,testid:testid});
				}
			}
			function saqtdelete(id,testid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/saqdelete');
					postwith('__URL__/saqtdelete',{id:id,testid:testid});
				}
			}
			window.onload=show;
		</script>
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
       	<script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
	</head>
	<body>	
    	<!-- layout::Auth:header::0 -->
		<div class="container-fluid">
              <div class="row-fluid">
                <div class="span12">
                  <div class="hero-unit">
                  	<h1>组卷预览</h1>
                    <p style="font-size:12px">当前位置：
                        <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                        <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                        <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                        <a href='__URL__/testdetail' class="nowpositionhref">试题管理</a>>
                        <a href='__URL__/testpackage/id/<?php echo ($testid); ?>' class="nowpositionhref">组卷</a>>
					<a href="__URL__/detail">组卷预览</a>
					</p>
                  </div>
                <a href='__URL__/testpackage/id/<?php echo ($testid); ?>' class=" btn btn-info">返回组卷</a>
                <div class="span12">
                	<table width="100%" class="table table-bordered table-striped">
					<load href"__PUBLIC__/js/list_show.js">
					<input type='hidden' name='testid' value='<?php echo ($testid); ?>'>
					<tbody id="tab">
						<?php if(is_array($list1)): $i = 0; $__LIST__ = $list1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
								<td style="width:15%">单选:第<?php echo ($vo["number"]); ?>题</td>
								<td style="width:75%"><?php echo ($vo["name"]); ?><br>A:<?php echo ($vo["A"]); ?><br>B:<?php echo ($vo["B"]); ?><br>C:<?php echo ($vo["C"]); ?><br>D:<?php echo ($vo["D"]); ?><br></td>
								<td >分值：<?php echo ($vo["score"]); ?></td><?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
					
					<tbody id="tab">
						<?php if(is_array($list2)): $i = 0; $__LIST__ = $list2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
								<td>多选:第<?php echo ($vo["number"]); ?>题</td>
								<td><?php echo ($vo["name"]); ?><br>A:<?php echo ($vo["A"]); ?><br>B:<?php echo ($vo["B"]); ?><br>C:<?php echo ($vo["C"]); ?><br>D:<?php echo ($vo["D"]); ?><br></td>
								<td >分值：<?php echo ($vo["score"]); ?></td><?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
					<tbody>
						<?php if(is_array($list3)): $i = 0; $__LIST__ = $list3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
								<td >填空:第<?php echo ($vo["number"]); ?>题</td>
								<td ><?php echo ($vo["name"]); ?><br></td>
								<td>分值：<?php echo ($vo["score"]); ?></td><?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
					<tbody>
						<?php if(is_array($list4)): $i = 0; $__LIST__ = $list4;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
								<td >简答:第<?php echo ($vo["number"]); ?>题</td>
								<td ><?php echo ($vo["name"]); ?><br></td>
								<td>分值：<?php echo ($vo["score"]); ?></td>
							</tr><?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
				</table>
                </div>
                  
				
				<p class="navbar-text pull-right"><?php echo ($page); ?></p>
		</div>
        </div>
	</body>
</html>